package manager.ikaraoke;

import java.util.List;

import manager.ikaraoke.adapter.FoodDrinkAdapter;
import manager.ikaraoke.database.dto.FoodDrinkDto;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class SettingDrink extends Activity implements OnClickListener {
	private ImageView imageAddDrink;
	private List<FoodDrinkDto> dtos;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.foods);
		FoodDrinkAdapter foodDrinkAdapter = new FoodDrinkAdapter(getApplicationContext(), R.layout.foods, dtos);
		imageAddDrink = (ImageView) findViewById(R.id.DrinkableAdd);
		imageAddDrink.setOnClickListener(this);
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if(v!=null){
			switch (v.getId()) {
			case R.id.DrinkableAdd:
				Intent intent = new Intent(getApplicationContext(),SettingAddFoodDrink.class);
				intent.putExtra("type",2);
				startActivity(intent);
				break;

			default:
				break;
			}
		}
		
	}

}
